package cn.gson.fengboot.controller;

import cn.gson.fengboot.model.pojos.DproVo;
import cn.gson.fengboot.model.service.DbusproService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/buspro")
public class DbusproController {
    @Autowired
    DbusproService dbusproService;

    @RequestMapping("/selectbuspro")
    public List<DproVo> seproBybusId(Integer busId){
        return dbusproService.seproBybusId(busId);
    }
}
